package com.zebra.remoting.config;

import com.zebra.common.ZebraBaseMessage;
import io.netty.buffer.ByteBuf;
import lombok.Data;
import lombok.ToString;

/**
 *
 * @Date 2020/7/7 0007
 **/
@Data
@ToString
public class PingMessage extends ZebraBaseMessage<PingMessage> {

    private byte ping;

    @Override
    public void write(ByteBuf b) {
        writeByte(b, (byte) 1);
    }

    @Override
    public PingMessage read(ByteBuf b) {
        readByte(b);
        this.ping = (byte) 1;
        return this;
    }


}
